package models;

public class Client
{

    public String ip;
    public int port;

    public Client(String hostAddress, int port)
    {
        this.ip = hostAddress;
        this.port = port;
    }

    @Override
    public boolean equals(Object obj)
    {
        if (!(obj instanceof Client))
            return false;
        Client other = (Client) obj;

        return other.ip.equals(ip) && other.port == port;
    }
}
